package com.hmsproject.search.managedbean;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean
@ViewScoped
public class LocationAutoCompleteText {
	
	public List<String> completeText(String query) {
        List<String> results = new ArrayList<String>();
        results.add("SanFrancisco");
        results.add("Dallas");
        results.add("Chicago");
        results.add("Seattle");
        results.add("NewYork");
        results.add("LosAngeles");
        
        return results;
    }

}
